Espressif Systems /ESP32-C6 /PCNT /U2_CONF0

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as U2_CONF0

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0FILTER_THRES0 (FILTER_EN)FILTER_EN 0 (THR_ZERO_EN)THR_ZERO_EN 0 (THR_H_LIM_EN)THR_H_LIM_EN 0 (THR_L_LIM_EN)THR_L_LIM_EN 0 (THR_THRES0_EN)THR_THRES0_EN 0 (THR_THRES1_EN)THR_THRES1_EN 0CH0_NEG_MODE 0CH0_POS_MODE 0CH0_HCTRL_MODE 0CH0_LCTRL_MODE 0CH1_NEG_MODE 0CH1_POS_MODE 0CH1_HCTRL_MODE 0CH1_LCTRL_MODE

Description

Configuration register 0 for unit 2

Fields

FILTER_THRES

This sets the maximum threshold, in APB_CLK cycles, for the filter.

Any pulses with width less than this will be ignored when the filter is enabled.

FILTER_EN

This is the enable bit for unit %s’s input filter.

THR_ZERO_EN

This is the enable bit for unit %s’s zero comparator.

THR_H_LIM_EN

This is the enable bit for unit %s’s thr_h_lim comparator.

THR_L_LIM_EN

This is the enable bit for unit %s’s thr_l_lim comparator.

THR_THRES0_EN

This is the enable bit for unit %s’s thres0 comparator.

THR_THRES1_EN

This is the enable bit for unit %s’s thres1 comparator.

CH0_NEG_MODE

This register sets the behavior when the signal input of channel 0 detects a negative edge.

1: Increase the counter.2: Decrease the counter.0, 3: No effect on counter

CH0_POS_MODE

This register sets the behavior when the signal input of channel 0 detects a positive edge.

1: Increase the counter.2: Decrease the counter.0, 3: No effect on counter

CH0_HCTRL_MODE

This register configures how the CH%s_POS_MODE/CH%s_NEG_MODE settings will be modified when the control signal is high.

0: No modification.1: Invert behavior (increase -> decrease, decrease -> increase).2, 3: Inhibit counter modification

CH0_LCTRL_MODE

This register configures how the CH%s_POS_MODE/CH%s_NEG_MODE settings will be modified when the control signal is low.

0: No modification.1: Invert behavior (increase -> decrease, decrease -> increase).2, 3: Inhibit counter modification

CH1_NEG_MODE

This register sets the behavior when the signal input of channel 1 detects a negative edge.

1: Increment the counter.2: Decrement the counter.0, 3: No effect on counter

CH1_POS_MODE

This register sets the behavior when the signal input of channel 1 detects a positive edge.

1: Increment the counter.2: Decrement the counter.0, 3: No effect on counter

CH1_HCTRL_MODE

This register configures how the CH%s_POS_MODE/CH%s_NEG_MODE settings will be modified when the control signal is high.

0: No modification.1: Invert behavior (increase -> decrease, decrease -> increase).2, 3: Inhibit counter modification

CH1_LCTRL_MODE

This register configures how the CH%s_POS_MODE/CH%s_NEG_MODE settings will be modified when the control signal is low.

0: No modification.1: Invert behavior (increase -> decrease, decrease -> increase).2, 3: Inhibit counter modification

Links

() ()